package com.spring.prototype_demo;

import lombok.Data;

@Data
public class MyClientBean {

	private ServiceFactory myServiceFactory;

	public void someBusinessMethod() {
		// get a 'fresh', brand new MyService instance
		MyService service = this.myServiceFactory.getService();
		MyService2 service2 = this.myServiceFactory.getService2();
		// use the service object to effect the business logic...
		service.sou();
		service2.sou();
	}
}